package com.b511.swpu.cementbackend.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.models.auth.In;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Range;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 固井流体位置 对应表 CM_FLUID_POSITION
public class CM_FluidPosition extends BABaseEntity {
    @Id
    @GenericGenerator(name="cmPositionGenerator", strategy="uuid")
    @GeneratedValue(generator="cmPositionGenerator")
    private String CM_FluidPosition_ID;

    @Basic
    @Column(name = "FLUIDTYPE", length = 50)
    private String fluidType;

    @Basic
    @Column(name = "FLUIDNO")
    private Integer fluidNO;

    @Basic
    @Column(name = "FLUIDTOPDEPTH")
    private Double fluidTopDepth;

    @Basic
    @Column(name = "BA_WELL_ID")
    @JsonIgnore
    private Long ba_well_id;

    @ManyToOne
    @JoinColumn(name="cm_basic_id")
    private CM_Basic basic;

}
